<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: Gustuy
  Date: 2021/7/12
  Time: 17:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
  ArrayList<String> people =new ArrayList<>();
  people.add("1");
  people.add("2");
  people.add("3");
  people.add("4");
  people.add("5");
  pageContext.setAttribute("list",people);
%>
<c:forEach var="people" items="${list}">
  <c:out value="${people}"></c:out>
</c:forEach>
</body>
</html>
